package controllers

import (
	"LoveU/models"
	"LoveU/utils"

	"github.com/astaxie/beego"
)

type OtherController struct {
	beego.Controller
}

func (this *OtherController) GetAphorism() {
	aphorism := models.GetAphorism()
	getJSONOther(this, utils.OK, "success", "", aphorism)
}

//获取最新版本
func (this *OtherController) GetLastEdition() {
	edition := models.GetEdition()
	if edition == nil {
		getJSONOther(this, utils.UNKNOWN_ERROR, "没有更新", "", nil)
	}
	getJSONOther(this, utils.OK, "success", "", edition)
}
